package cn.liutao.auth.entity.param;

import cn.liutao.common.entity.Validation;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;

/**
 * @author: liutao
 * @description: 支付密码param
 * @date: 2023/11/21 13:01
 */
@Data
public class PayPwdParam {
    /**
     * 支付密码
     */
    @Min(value = 0,message = "请输入6位数字")
    @Max(value = 999999,message = "请输入6位数字")
    @Length(min = 6,max = 6,message = "请输入6位数字")
    private String payPassword;

    /**
     * 确认支付密码
     */
    @Min(value = 0,message = "请输入6位数字")
    @Max(value = 999999,message = "请输入6位数字")
    @Length(min = 6,max = 6,message = "请输入6位数字")
    private String payPasswordAgain;

    /**
     * 账号密码
     */
    @NotBlank(message = "请输入账号密码",groups = Validation.EditGroup.class)
    private String password;
}
